'use strict'
import { View } from '../../component'
import style from './css.css'
class OnLine extends React.Component {
  static propTypes = {
    number: PropTypes.number
  }
  render () {
    return (
      <View className={style.onLineBox} >
        <View className={style.onLineBoxText} >
          <View className={style.onLineBoxTextTop} >{ this.props.number }人</View>
          <View className={style.onLineBoxTextBottom} >在房间</View>
        </View>
      </View>
    )
  }
}

export default OnLine
